package com.cloud;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * 商品服务启动类
 *
 */

@SpringBootApplication
@EnableDubbo//开启dubbo
@EnableDiscoveryClient
@RefreshScope//配置动态刷新
@Slf4j
@MapperScan("com.cloud.mapper")
public class ShoppingShangPinServiceApplication {
    public static void main( String[] args )
    {
        SpringApplication.run(ShoppingShangPinServiceApplication.class,args);
        log.info("*********** 商品服务启动成功 *********");
    }
}
